//
//  SearchPersonModel.m
//  __PRODUCTNAME__
//
//  Created by Hanlingyu on 16/09/21
//  Copyright (c) m. All rights reserved.
//

#import "SearchPersonModel.h"
#import "SearchPersonContent.h"

@implementation SearchPersonModel

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"content"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            SearchPersonContent *personContent = [SearchPersonContent modelWithDic:dic];
            [array addObject:personContent];
        }
        _content = array;
    }
}




+ (NSDictionary *)objectClassInArray{
    return @{@"content" : [SearchPersonContent class]};
}

@end
